//
//  UIButton+LAYOUT.h
//  测试button封装
//
//  Created by 我演示 on 2019/11/11.
//  Copyright © 2019 ALLSall. All rights reserved.
//


#import <UIKit/UIKit.h>


typedef NS_ENUM(NSUInteger, ABSButtonEdgeInsetsStyle) {
    ABSButtonEdgeInsetsStyleTop, // image在上，label在下
    ABSButtonEdgeInsetsStyleLeft, // image在左，label在右
    ABSButtonEdgeInsetsStyleBottom, // image在下，label在上
    ABSButtonEdgeInsetsStyleRight // image在右，label在左
};

NS_ASSUME_NONNULL_BEGIN


@interface UIButton (LAYOUT)

/**
 *  设置button的titleLabel和imageView的布局样式，及间距
 *  @param style titleLabel和imageView的布局样式
 *  @param space titleLabel和imageView的间距
 */
- (void)setLayoutWithEdgeInsetsStyle:(ABSButtonEdgeInsetsStyle)style
imageTitleSpace:(CGFloat)space;


@end

NS_ASSUME_NONNULL_END
